<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>更新系统缓存</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="Author" content="larry" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <link rel="stylesheet" type="text/css" href="/static/admin/common/layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="/static/admin/backstage/css/base.css" media="all">
    <link rel="stylesheet" type="text/css" href="/static/admin/common/css/animate.css" media="all">
    <link rel="stylesheet" type="text/css" href="/static/admin/backstage/css/admin.css" media="all">
</head>
<body>
<div class="layui-fluid">
    <div class="larry-container larryms-admin">
        <div class="layui-row layui-col-space20">
            <div class="layui-col-xs12 animated fadeInRightBig">
                <section class="larry-panel">
                    <div class="larryms-page-header">
                        <span class="tit">更新系统缓存</span>
                    </div>
                    <div class="larryms-page-body">
                        <form class="layui-form" enctype="multipart/form-data">
                            <div class="layui-form-item">
                                <a href="javascript:;" class="layui-btn layui-btn-lg layui-btn-normal" id="cache">清除缓存</a>
                            </div>
                        </form>
                    </div>
                </section>
            </div>
        </div>
    </div>
</div>
<!-- 加载js文件-->
<script type="text/javascript" src="/static/admin/common/layui/layui.js"></script>
<script type="text/javascript">
    var $,layer;
    layui.use(['jquery', 'layer'], function(){
        $ = layui.$;    //重点处
        layer = layui.layer;
        $(function(){
            //删除角色
            $("#cache").click(function(){
                $.getJSON("{:url('admin/clear/clearRuntime')}",function(res){
                    if(res.code == '1'){
                        layer.msg(res.msg, {icon: 6});
                        //console.log(data.code);
                    }else{
                        layer.msg(res.msg, {icon: 5});
                    }
                });
            })
        });
    });
</script>
</body>
</html>